<?PHP
require_once(SMARTY_PATH.'Smarty.class.php');

/*  
    实现对Smarty的封装。
*/
class SmartyCap extends Smarty
{
    function __construct($T_PATH,$themes = '')
    {   
        parent::__construct();
        !$themes && $themes = 'default';
        $this->left_delimiter = "{{";
        $this->right_delimiter = "}}";

        $this->cache_dir = $T_PATH.'themes/cache/';
        $this->config_dir = $T_PATH.'system/config/';
        $this->compile_dir = $T_PATH.'themes/temp/'.$themes;
        $this->template_dir = $T_PATH.'themes/'.$themes;

        
//        echo $this->template_dir;
    }   
}
?>